The ColorPicker Component > FColorPicker.addItemAt() |
FColorPicker.addItemAt()
Availability
Flash Player 6.
Usage
myPicker_cp.addItemAt (location,
color)
Parameters
location - Location of the new color (greater
than or equal to 0).
color - The color to add to the component (in
0xRRGGBB form).
Returns
Nothing.
Description
Adds a new color swatch to the ColorPicker component at the specified location.
Note
In addition to addItem and removeItem, the ColorPicker
component supports the same methods as the DataProvider class (such as removeItemAt,
removeAll, getItemAt, and so on). See the DataProviderClass
documentation for more details on these methods.
Example
The following code adds a new green swatch in the third position in a ColorPicker instance:
myPicker_cp.addItemAt(2, 0x00FF00);
See also